package game;

import character.Character;

public abstract class CombatController {
    public static final String RESULT_MISS = "Miss";
    
    public static void attack(Character attacker, Character target) {
        Integer damage = attacker.getInventory().getEquippedWeapon().getBaseDamage();
        target.getCharacterStatus().takeDamage(damage);
        System.out.println("And womps "+target+" with its "+attacker.getInventory().getEquippedWeapon()+" for "+damage+" points of damage.");
        if(target.getCharacterStatus().getHitPoints() <= 0)
            System.out.println(target+" is dead.");
    }
}
